package pers.wangyuhang.demo;

/**
 * Created with IntelliJ IDEA.
 * Desciption:
 * User: 15716
 * Date: 2021-12-23
 * Time: 12:18
 */
public class Person {
    String name;
    int age;

    public Person() {

    }

    public Person(String name,int age) {
        this.name = name;
        this.age = age;
    }

    public void eat() {
        System.out.println("吃饭");

    }

    public void walk(int distance) {
        System.out.println("走路走了" + distance + "公里");
    }

}
